
APAR= II09711
TOGGLE CONNECTIVITY CONFIGURATIONS


** Last updated 9/30/96 **

NOTE: Due to a problem with entering backslashes into the
record, you will need to modify the information before using
it.  Please change all occurrences of "" to a backslash.

These new toggle capabilities are now available with the
Client Access/400 for Windows 3.1 Resave.  Please refer to
II09358 for more information.  You must have cum C6
for R310 and C6360158 for R360 for this support.


SWITCHING FROM LAN TO WAN CONNECTIONS
_____________________________________

There is now a method available that will allow you to toggle
easily from a LAN Connection to a WAN Connection without having
to reconfigure your PC through the Client Access/400
configuration program.  This is now possible because there
are no longer any statements for WAN connections in the
CONFIG.SYS or AUTOEXEC.BAT files.

Initial Environment Setup
-------------------------
Follow these steps to get the initial setup:
 1. Configure for a WAN connection
 2. Verify that the connection works
 3. Copy this file from c:WINDOWSNSD.INI to c:WINDOWSNSD.WAN
 4. Configure for a LAN connection
 5. Verify that the LAN connection works
 6. Copy the new c:WINDOWSNSD.INI to c:WINDOWSNSD.LAN
 7. Edit c:WINDOWSSYSTEM.INI to add VDWAN.386 right after the
    VD802.386 statement in the 386Enh section
 8. Restart Windows


Creating a batch file
---------------------
You can now create a batch file to make the switch from one
connection type to the other.

Batch file example for toggling between LAN-WAN connections.
Batch file name is c:CAWINSETCONN.BAT

Contents:
   echo off
   REM CAWIN Batch file for toggling between LAN-WAN
   choice /c:yn Use LAN connection?
   IF errorlevel 2 goto NOLAN
   echo on
   COPY c:WINDOWSNSD.LAN c:WINDOWSNSD.INI
   echo off
   goto ALLDONE
   :NOLAN
   echo on
   COPY c:WINDOWS NSD.WAN c:WINDOWSNSD.INI
   echo off
   :ALLDONE
   exit


Adding an icon to the desktop
-----------------------------
Here are the instructions for adding an icon to the Windows
destop to enable toggling between LAN-WAN connections within
Windows.

From Windows Program Manager:
 1. Open Client Access/400 for Windows Program Group
 2. Select Program Manager Menu Option FILE
 3. Select NEW
 4. Select Program Item, Click OK
 5. Fill in the Program Item Properties, then click OK
      Description:         Set Connection Type
      Command Line:        c:CAWINSETCONN.BAT
      Working Directory:   c:CAWIN




HOW TO TOGGLE BETWEEN TWO ASYNC/SWITCHED CONFIGURATIONS
_______________________________________________________

Mobile users now have the ability to switch configurations
to a different AS/400 with the new design of the wide-area-
network communication support for Client Access for Window 3.1.

The following procedure can be used to easily toggle between
two different Async/switched connections.


Initial Environment Setup
-------------------------
The initial setup work that needs to be done will be to
configure Client Access and then save the important
configuration files.

 1. Configure Client Access for an Async/switched connection
    to the first AS/400
 2. Verify that the connection works
 3. Make a copy of the following configuration files:
      c:WINDOWSNSD.INI      to    c:WINDOWSNSD.AS1
      c:CAWINNSWNET.INI     to    c:CAWINNSWNET.AS1
 4. Reconfigure Client Access for an Async/switched
    connection to the second AS/400
 5. Verify the connection works
 6. Make a copy of the new configuration files
      c:WINDOWSNSD.INI      to    c:WINDOWSNSD.AS2
      c:CAWINNSWNET.INI     to    c:CAWINNSWNET.AS2


Creating a batch file
---------------------
The next step will show how to create a batch file to toggle
the connection between the AS/400 configured in the first step.

NOTE: This example assumes the following information:
  c:WINDOWS   = Path name for the WINDOWS directory
  c:CAWIN     = Path name for the Client Access directory
  AS400#1      = Name of the first AS/400 configured
  AS400#2      = Name of the second AS/400 configured

These names should be changed to reflect the users environment.

Batch file example for toggling between Async/switched:
Batch file name is c:CAWINSETASYNC.BAT:

Contents:
  echo off
  REM CAWIN Batch file for toggling between Async/switched
  choice /c:yn Use AS400#1 Async/Switched connection?
  IF errorlevel 2 goto AS400#2
  echo on
  COPY c:WINDOWSNSD.AS1  c:WINDOWSNSD.INI
  COPY c:CAWINNSWNET.AS1  c:CAWINNSWNET.INI
  echo off
  goto ALLDONE
  :AS400#2
  echo on
  COPY c:WINDOWSNSD.AS2  c:WINDOWSNSD.INI
  COPY c:CAWINNSWNET.AS2  c:CAWINNSWNET.INI
  echo off
  :ALLDONE
  exit


Adding an icon to the desktop
-----------------------------

The last step shows how to add an icon to the Windows desktop
to start the batch file switch.

From the Windows Program Manager:
 1. Open Client Access/400 for Windows Program Group
 2. Select Program MAnager Menu Option FILE
 3. Select NEW
 4. Select Program Item, click OK
 5. Fill in the Program Item Properties, then click OK
      Description:        Set Asunc/switched Connection Type
      Command Line:       c:CAWINSETASYNC.BAT
      Working Directory:  c:CAWIN


